<?php require_once 'include/head.php';?>
<!--h_r start-->
    <div class="h_r wd95 mA">
		<ul>
			<li class="clearfix">
                <span class="fl wd30 texR">
                    级别：　
                </span>
                           <font class="a" style="color: <?php echo $user['color'];?>" ><?php echo $user['user_level_name'];?></font>
            </li>
            <li class="clearfix">
                <span class="fl wd30">
                    供位：<font class="a"><?php echo $user['csg'];?></font>
                </span>
                <span class="fl wd30">
                    账户：<font class="a"><?php echo $user['username'];?></font>
                </span>
                <span class="fl wd40">
                    时间：<font class="a"><?php echo date('Y.m.d',$user['create_time']);?></font>
                </span>
            </li>
            <li class="clearfix">
                <span class="fl wd30 texR">
                    手机号码：　
                </span>
                <input class="disB name" type="tel"id="phone" placeholder="" value="<?php echo $user['phone'];?>" />
            </li>
            <li class="clearfix">
                <span class="fl wd30 texR">
                    姓名：　
                </span>
                <input class="disB name" type="text" id="true_name" value="<?php echo $user['true_name'];?>" placeholder="" />
            </li>
            <li class="clearfix">
                <span class="fl wd30 texR">
                    登录密码：　
                </span>
                <input class="disB name" type="text" id="password" value="" placeholder="" />
            </li>
            <li class="clearfix">
                <span class="fl wd30 texR">
                    二级密码：　
                </span>
                <input class="disB name" type="text" id="password2" value="" placeholder="" />
            </li>
            <li class="clearfix">
                <span class="fl wd30 texR">
                    联系地址：　
                </span>
                <select name="province" class="wd20" id="province">
                        <?php 
                                foreach($area_list as $key => $value) {
                                        if($value['areano'] == $area_array[0]) {
                                                echo ' <option value="'.$value['areano'].','.$value['areaname'].'" selected = "selected">'.$value['areaname'].'</option>';
                                        }else {
                                                echo ' <option value="'.$value['areano'].','.$value['areaname'].'">'.$value['areaname'].'</option>';
                                        }									
                                }

                        ?>
                </select>						 
                <select name="city" class="wd20" id="city">						 
                        <?php 
                                foreach($city_list as $key => $value) {
                                        if($value['areano'] == $area_array[1]) {
                                                echo ' <option value="'.$value['areano'].','.$value['areaname'].'" selected = "selected">'.$value['areaname'].'</option>';
                                        }else {
                                                echo ' <option value="'.$value['areano'].','.$value['areaname'].'">'.$value['areaname'].'</option>';
                                        }									
                                }

                        ?>
                </select>					 
                <select name="county" class="wd20" id="county">							  
                        <?php 
                                foreach($county_list as $key => $value) {
                                        if($value['areano'] == $area_array[2]) {
                                                echo ' <option value="'.$value['areano'].','.$value['areaname'].'" selected = "selected">'.$value['areaname'].'</option>';
                                        }else {
                                                echo ' <option value="'.$value['areano'].','.$value['areaname'].'">'.$value['areaname'].'</option>';
                                        }									
                                }

                        ?>
                </select>
               
            </li>
            <li class="clearfix">
                <span class="fl wd30 texR">
                    详细地址：　
                </span>
                <input class="disB name" style="width:63%;" type="text" id="address" placeholder=""value="<?php echo $user['address'];?>" />
            </li>
            <li class="clearfix">
                <span class="fl wd30 texR">
                    开户行：　
                </span>
                <input class="disB name" type="text" id="bank_name"value="<?php echo $user['bank_name'];?>" placeholder="" />
            </li>
            <li class="clearfix">
                <span class="fl wd30 texR">
                    银行卡号：　
                </span>
                <input class="disB name" type="text" id="bank_account" value="<?php echo $user['bank_account'];?>" placeholder="" />
            </li>
            <li class="clearfix">
                <span class="fl">
                    直接下级个数
                </span>
                <span class="fr">
                    <font class="a"><?php echo $user['next_count'];?>人</font>
                </span>
            </li>
            <li class="clearfix">
                <span class="fl">
                    所有下级个数
                </span>
                <span class="fr">
                    <font class="a"><?php echo $user['all_next_count'];?>人</font>
                </span>
            </li>
            <li class="clearfix">
                <span class="fl">
                    总佣金
                </span>
                <span class="fr">
                    <font class="a">￥<?php echo $user['money'];?></font>
                </span>
            </li>
            <li class="clearfix">
                <span class="fl">
                    佣金余额
                </span>
                <span class="fr">
                    <font class="a">￥<?php echo $user['balance'];?></font>
                </span>
            </li>
            <li class="clearfix">
                <span class="fl">
                    报单币
                </span>
                <span class="fr">
                    <font class="a"><?php echo $user['system_money'];?></font>
                </span>
            </li>
            <li class="clearfix">
                <span class="fl">
                    报单金额
                </span>
                <span class="fr">
                    <font class="a"><?php echo $user['system_balance'];?></font>
                </span>
            </li>
            <li class="clearfix">
                <span class="fl">
                    提现
                </span>
                <span class="fr">
                    <font class="a">￥<?php echo $user['tixian'];?></font>
                </span>
            </li>
            <li class="clearfix">
                <span class="fl">
                    业绩
                </span>
                <span class="fr">
                    <font class="a">￥<?php echo $user['performance'];?></font>
                </span>
            </li>
           
            <li class="clearfix">
                <span class="fl">
                    费用
                </span>
                <span class="fr">
                    <font class="a">￥<?php echo $user['price'];?></font>
                </span>
            </li>
            <li>
                <input class="disB cfff font14" type="button" onclick="post_data()" value="保 存" >
            </li>
        </ul>
    </div>
<!--h_r end-->
</body>
<script src="/public_source/wap/js/areas.js"></script>
<script type="text/javascript">
    function post_data(){
        var true_name=$("#true_name").val();
        var phone=$("#phone").val();
        var password=$("#password").val();
        var password2=$("#password2").val();
        var province=$("#province").val();
        var city=$("#city").val();
        var county=$("#county").val();
        var address=$("#address").val();
        var bank_name=$("#bank_name").val();
        var bank_account=$("#bank_account").val();
        var data={true_name:true_name,phone:phone,password:password,password2:password2,province:province,city:city,county:county,address:address,bank_name:bank_name,bank_account:bank_account};
         $.ajax({
                url:"/wap/home/user_edit",
                async: false,
                type:"post",
                data: data,
                dataType: 'json',
                success:function(data) {
                        if(data.success){
                            window.location.href='/wap/home/user_detail';
                        }
                }	
        });
    }

</script>
</html>